//
//  Movie.m
//  OpenYourEyes
//
//  Created by zhanglei on 15/8/19.
//  Copyright (c) 2015年 zhanglei. All rights reserved.
//

#import "Movie.h"

@implementation Movie

- (id)initWithDictronary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
        NSLog(@"self = %@", self.duration);
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
    if ([key isEqualToString:@"description"]) {
        self.videoDescription = value;
    }
}

@end
